home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 10
/
FM Towns Free Software Collection 10.iso
/
ms_dos
/
tool
/
fapxtool
/
src
/
txm
/
txmerge.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-01-06
|
715b
|
45 lines
/***************
*
* txm\txmerge.c
*/
#include "txm.h"
/* スライドマージ制御 */
int smerge()
{
int ret;
char ext[6];
/* printf("smerge()\n"); */
if (chkinfo() == FALSE) {
return ERROR;
}
makenewextname(logfile, workfile, ".WRK");
sprintf(ext, ".%03d", nowinfo->ext);
makenewextname(logfile, mfile, ext);
if (hpflg) {
ret = hpmerge();
}
else {
ret = forummerge();
}
makenewextname(logfile, line1, ".BAK"); /* バックアップ作成 */
remove(line1);
rename(logfile, line1);
rename(workfile, logfile);
/* printf("smerge(1) ret = %d\n", ret); */
if (ret == FALSE) {
return ERROR;
}
if (saveinfo()== FALSE) {
return ERROR;
}
return NORMAL;
}